package com.testtree;

public class Test2BTree {

	public static void main(String[] args) {
		

	}

	BTNode getTreeData(){
		BTNode left1 = new BTNode("left1", null, null);
		BTNode right1 = new BTNode("right1", null, null);
		
		BTNode root = new BTNode("root", left1, right1);
		return root;
	}
}

class BTNode{
	private String data;
	private BTNode left;
	private BTNode right;
	
	BTNode(String data, BTNode left, BTNode right){
		this.data = data;
		this.left = left;
		this.right = right;
	}

	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public BTNode getLeft() {
		return left;
	}
	public void setLeft(BTNode left) {
		this.left = left;
	}
	public BTNode getRight() {
		return right;
	}
	public void setRight(BTNode right) {
		this.right = right;
	}
}
